# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gnumeric
pkgver=1.12.55
pkgrel=2
pkgdesc="GNOME Spreadsheet Program"
url="https://www.gnome.org/projects/gnumeric"
# s390x fails to build
arch="all !s390x"
license="GPL-2.0-or-later OR GPL-3.0-or-later"
makedepends="
	bison
	desktop-file-utils
	flex
	goffice-dev
	gtk+3.0-dev
	itstool
	intltool
	libxml2-utils
	libxslt-dev
	py3-gobject3-dev
	python3-dev
	rarian
	gtk-doc
	"
checkdepends="
	perl-exporter
	perl-file-basedir
	perl-xml-parser
	"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnumeric/${pkgver%.*}/gnumeric-$pkgver.tar.xz"
options="!check" # failing tests

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--with-python \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
04127a353d5109e3a31d9a3bd42d6d177366cc6c5d900516b4c8a7a8fcaecc71bd4e2e94876719246841070964b393af97988cafbd6313cea135c1757889e878  gnumeric-1.12.55.tar.xz
"
